package com.yaorange.mapper;

import com.yaorange.entity.Apply;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: CorJ
 * @version: 1.0
 * @create: 2021-12-01 14:55
 */
public interface ApplyMapper {
    List<Apply> selectApply(@Param("articleName") String articleName, @Param("applyDate") String applyDate, @Param("applyName") String applyName);

    int updateById(@Param("applyId") Integer applyId,@Param("stateId") Integer stateId);

    int updateMoreById(@Param("item") List<Integer> ids, @Param("stateId") Integer stateId);

    int insertApply(Apply apply);

    List<Apply> selectStateList(Integer id);

    List<Apply> selectApplyList(@Param("stateId") Integer stateId, @Param("applyDate") String applyDate, @Param("userId") Integer userId);

    int updateState(@Param("applyId") Integer applyId, @Param("stateId") int stateId);

    Apply selectApplyById(@Param("aId") Integer aId);

    int updateApply(@Param("applyId") Integer applyId, @Param("applyReason") String applyReason, @Param("applyDate") String applyDate, @Param("applyNum") Integer applyNum,@Param("stateId") Integer stateId);
}
